/**
 * Copyright 2013 ABSir's Studio
 * 
 * All right reserved
 *
 * Create on 2013-5-2 下午1:57:44
 */
package com.absir.android.view.listener;

import com.absir.core.kernel.KernelDyna;

import android.view.View;
import android.view.View.OnLongClickListener;

/**
 * @author absir
 * 
 */
public class OnLongClick extends Listener implements OnLongClickListener {

	/*
	 * (non-Javadoc)
	 * 
	 * @see android.view.View.OnLongClickListener#onLongClick(android.view.View)
	 */
	@Override
	public boolean onLongClick(View v) {
		// TODO Auto-generated method stub
		return KernelDyna.to(invoke(v), boolean.class);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.absir.android.view.Listener.Listener#listener(android.view.View)
	 */
	@Override
	protected void listener(View view) {
		// TODO Auto-generated method stub
		view.setOnLongClickListener(this);
	}
}
